
layui.define(["table", "form", "admin"], function (exports) {
    var $ = layui.$,
        table = layui.table;
    //输入框监听事件
    table.render({
        elem: "#LAY-pstat-manage",
        url: "/admin/privatechat/ajax_stat",
        cols: [
            [
                { field: "id", width: 50, title: "ID", },
                {
                    field: "time",
                    title: "日期",
                    width: 150,
                },
                { field: "batch_send_toal_num", title: "发送总条数", width: 150, sort: true },
                { field: "batch_send_num", width: 150, title: "下发成功用户数(去重)", sort: true },
                { field: "batch_read_num", title: "已读人数(去重)", width: 150, sort: true },
                { field: "batch_reply_num", title: "回复人数(去重)", width: 150, sort: true },
                { field: "desc", title: "明细", width: 1000, sort: true },
            ],
        ],
        page: true,
        limit: 20,
        height: "full-140",
        text: "对不起，加载出现异常！",
        even: true,
    });

    table.render({
        elem: "#LAY-qrcode-manage",
        url: "/admin/privatechat/ajax_qrcode_stat",
        cols: [
            [
                { field: "id", width: 50, title: "ID", },
                {
                    field: "date",
                    title: "日期",
                    width: 150,
                },
                { field: "open", title: "打开", width: 150, sort: true },
                { field: "click", width: 150, title: "点击", sort: true },
            ],
        ],
        page: true,
        limit: 20,
        height: "full-140",
        text: "对不起，加载出现异常！",
        even: true,
    });


    exports("private_chat_stat", {});
});
